package com.iw.adoms.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.iw.core.orm.hibernate.BaseEntity;

@Entity
@Table(name = "consumer_interview_detail")
public class ConsumerInterviewDetail extends BaseEntity {

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "interview_id")
	private ConsumerInterview interview; // 所属记录

	private String content; // 回访内容
	private Date interTime; // 回访时间
	private String interUser; // 电访员

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "department_id")
	private Department department; // 购买门店

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "brand_id")
	private Brand brand; // 回访食用品牌

	private Boolean interFlag; // 是否回访成功
	private String interFailureReason;// 未成功回访原因
	private Date interNextCallBack; // 预约下次回访时间
	private String memo; // 备注

	public ConsumerInterview getInterview() {
		return interview;
	}

	public void setInterview(ConsumerInterview interview) {
		this.interview = interview;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getInterTime() {
		return interTime;
	}

	public void setInterTime(Date interTime) {
		this.interTime = interTime;
	}

	public String getInterUser() {
		return interUser;
	}

	public void setInterUser(String interUser) {
		this.interUser = interUser;
	}

	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public Brand getBrand() {
		return brand;
	}

	public void setBrand(Brand brand) {
		this.brand = brand;
	}

	public Boolean getInterFlag() {
		return interFlag;
	}

	public void setInterFlag(Boolean interFlag) {
		this.interFlag = interFlag;
	}

	public String getInterFailureReason() {
		return interFailureReason;
	}

	public void setInterFailureReason(String interFailureReason) {
		this.interFailureReason = interFailureReason;
	}

	public Date getInterNextCallBack() {
		return interNextCallBack;
	}

	public void setInterNextCallBack(Date interNextCallBack) {
		this.interNextCallBack = interNextCallBack;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}